﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Files.MyDocs" %>
<input type="hidden" name="delID" value="0" id="delID" />
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
			    <div id="NoSelect" style="display:none">
                                    <div class="MessagePanel4">
                                    <img id="MessageImg" src="/images/ico_info.gif" style="border-width: 0px;">
                                    <div id="MessageText">
                                        <%=GetText("SF316")%>
                                    </div>
                                    </div>
				</div>
			    <%if (DelCount > -1)
				{ %>
			    <div id="DelFileRec">
                                    <div class="MessagePanel4">
                                    <img id="MessageImg" src="/images/ico_info.gif" style="border-width: 0px;">
                                    <div id="MessageText">
                                       <%=GetText("SF317",new string[]{DelCount.ToString()})%>
                                    </div>
                                    </div>
				</div>
			    <%} %>
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("SF014")%></h1>
							</div>
							<div class="submenuN_button"><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%> <a class="naddbtn btnspec" href="/files/upload.htm"><%}else{ %><a class="naddbtn btnspec" href="#" onclick="NotAffirm()"><%} %><span>&nbsp;&nbsp;&nbsp;<%=GetText("SF203")%>&nbsp;&nbsp;&nbsp;</span></a></div>
						</div>
					</div>
				</div>
							<div class="content628">
								<ul class="sort_sel">
									<li class="<%=DataType==1?"selATags":"unselATags" %> first" style="float:left"><span><%=DataType==1?GetText("AS144"):"<a href='"+WWWHost+"/files/mydocs.htm'>"+GetText("AS144")+"</a>" %></span></li>
									<li class="<%=DataType==2?"selATags":"unselATags" %>" style="float:left"><span><%=DataType==2?GetText("AS145"):"<a href='"+WWWHost+"/files/mydocs-2-1.htm'>"+GetText("AS145")+"</a>" %></span></li>
								</ul>	
								<div class="clear"></div>
							</div>
				<div class="Center9001n">
					<%if(DataType==2) {%>
					<div class="center9001right">	
					<%} else{%>				    
					<div class="center9001common">	
					<%} %>
						<div class="Center9001content">						
							<div class="files_area">
								<%if (DataType == 1)
								{ if(rptMyFiles.Items.Count>0){%>
								<div>
									<div class="floatl"><strong><%=GetText("SF042")%>:</strong> <a href="#" onclick="CheckDelBox(true)"><%=GetText("SF040")%></a>, <a href="#" onclick="CheckDelBox(false)"><%=GetText("SF041")%></a>&nbsp;&nbsp;<a href="javascript:void(0)"  onclick="DeleteFiles('curAll')" title="<%=GetText("C0050")%>"><img src="/Images/gaction_delete.gif" alt="" /></a> <a href="javascript:void(0)"  onclick="DeleteFiles('curAll')"><%=GetText("C0050")%></a></div>
									<div class="floatr"><%=GetText("SF036",new string[]{RecordCount.ToString()})%></div>
									<div class="clear"></div>
								</div>						    
								<div id="MyFilesDoc" class="margin20T">
									<table width="100%" border="0" cellspacing="1" cellpadding="2">
										<tr>
											<td width="370" bgcolor="#efefef" colspan="3"></td>
											<td width="120" bgcolor="#efefef"><%=GetText("SF039")%></td>
											<td width="80" bgcolor="#efefef"><%=GetText("WK019")%></td>
											<td width="80" bgcolor="#efefef"><%=GetText("SF037")%></td>
											<td width="80" bgcolor="#efefef"><%=GetText("C0111")%></td>
											<td width="80" bgcolor="#efefef"><%=GetText("SF038")%></td>
											<td width="60" bgcolor="#efefef"></td>
										</tr>
									<asp:repeater id="rptMyFiles" runat="server">
									<ItemTemplate>
										<tr>
											<td width="20" class="tablefliter"><input type="checkbox" value="<%#Eval("DocID")%>" /></td>
											<td width="20" class="tablefliter"><img src="/Images/<%#Eval("FileFormat").ToString().Trim().Replace('/','_')%>_16.gif" align="absmiddle" /></td>
											<td width="330" class="tablefliter"><div style="width:310px;overflow:hidden"><a href="<%#LoginHost%>/files/doc/<%#Eval("DocID")%>.htm"  ><%#HttpUtility.HtmlEncode(Eval("Title").ToString())%></a></div></td>
											<td width="120" class="tablefliter"><%#FormatDiffDate(GetText("C0035"), Eval("DiffLastUpdate").ToString())%></td>
											<td width="80" class="tablefliter"><%#Eval("Views")%></td>
											<td width="80" class="tablefliter"><%#Eval("Likes")%></td>
											<td width="80" class="tablefliter"><%#Eval("CommentCount")%></td>
											<td width="80" class="tablefliter"><%#Eval("DownLoads")%></td>
											<td width="60" class="tablefliter"><a href="<%#LoginHost%>/files/UpdateFile.htm?docid=<%#Eval("DocID")%>.htm"><img src="/Images/icon_common_edit.gif" alt="" title="Edit" /></a>&nbsp;<a href="javascript:void(0)"><img src="/Images/gaction_delete.gif" alt="" title="Delete" onclick="DeleteFiles('<%#Eval("DocID")%>')" /></a></td>
										</tr>
									</ItemTemplate>
									</asp:repeater>
									</table>
								</div>
								<%} else{%>
								<div class="Public_Profile_Notice"><%=GetText("SF307")%> <%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a href="<%#LoginHost%>/files/upload.htm"><%}else{ %><a href="#" onclick="NotAffirm()"><%} %><%=GetText("SF308")%></a></div><%} %>
								<%} else{%>
								<asp:repeater id="rptFriendF" runat="server">
									<ItemTemplate>
										<div class="margin20">
											<div class="floatl wid65">
												<div style="text-align:center"><img src="/Images/<%#Eval("FileFormat").ToString().Trim().Replace('/','_')%>.gif" /></div>
												<div style="text-align:center"><%#GetText("AS148",new string[]{Eval("Views").ToString()})%></div>
											</div>
											<div class="floatr alist_content">
												<span class="text14"><a href="<%#LoginHost%>/files/doc/<%#Eval("DocID")%>.htm" title="<%#HttpUtility.HtmlAttributeEncode(Eval("Title").ToString())%>"><%#HttpUtility.HtmlEncode(Eval("Title").ToString())%></a></span><br /><%#Lx.Web.Common.UI.Globals.GetString(Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("Desc").ToString()), 180)%>
												<p class="grey11"><a href="<%#LoginHost%>/files/learn-<%#Eval("LanguageLearn")%>-all/1-1.htm" title="<%#GetText("C0105",new string[]{BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString())})%>"><img src="/Images/language_<%#Eval("LanguageLearn")%>.gif" align="absmiddle" border="0" /></a> <a href="<%#LoginHost%>/files/learn-<%#Eval("LanguageLearn")%>-all/1-1.htm"><%#GetText("C0105",new string[]{BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString())})%></a>&nbsp;&nbsp;<%#GetText("SF021", new string[] { "<a href='" + LoginHost + "/" + Eval("MemberNo") + ".htm'>" + HttpUtility.HtmlEncode(Eval("Nickname").ToString()) + "</a>" })%><%#(Eval("Likes").ToString() == "0" && (decimal)Eval("Rates") < (decimal)1.0) ? "&nbsp;-&nbsp;" : ((Eval("Likes").ToString() == "0" ? "&nbsp;-&nbsp;" : " -&nbsp;" + GetText("SF035", new string[] { Eval("Likes").ToString() })) + ((decimal)Eval("Rates") < (decimal)1.0 ? "&nbsp;-&nbsp;" : (Eval("Likes").ToString() == "0" ? "" : ",&nbsp;") + GetText("WK020") + ":" + ((decimal)Eval("Rates")).ToString("N1") + "&nbsp;-&nbsp;"))%> <%#FormatDiffDate(GetText("C0035"), Eval("DiffLastUpdate").ToString())%></p>
											</div>
											<div class="clear"></div>
										</div>
									</ItemTemplate>
								</asp:repeater>
								<%} %>
								<div id="divPage">
									<%=CreatePageNav(RecordCount, PageSize, pageIndex,"",
										string.Format("<span class='page_none grey10'><a href='{0}/files/mydocs-{1}-$I$.htm'>{2}</a></span>&nbsp;", LoginHost,HttpUtility.UrlEncode(DataType.ToString()),HttpUtility.UrlEncode(GetText("Prev"))),
										"",
										string.Format("<span class='page_none grey10'><a href='{0}/files/mydocs-{1}-$I$.htm'>{2}</a></span>&nbsp;", LoginHost,HttpUtility.UrlEncode(DataType.ToString()),HttpUtility.UrlEncode(GetText("Next"))),
										string.Format("<span class='page_select'>{0}</span>&nbsp;",pageIndex),
										string.Format("<span class='page_none grey10'><a href='{0}/files/mydocs-{1}-$I$.htm'>$I$</a></span>&nbsp;", LoginHost,HttpUtility.UrlEncode(DataType.ToString())))%>									
								</div>
							</div>
						</div>
					</div>
					<%if(DataType==2) {%>
					<div class="center9001left">
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("C2014")%></h4>
								<div class="layer_contentA5">
									<ul class="common_right">
									<asp:Repeater ID="rptPLL" runat="server">
										<ItemTemplate>										
											<li><a href='<%#LoginHost%>/files/learn-<%#Eval("LanguageValue")%>-all/1-1.htm' title="<%#GetText("C0105",new string[]{Eval("LanguageText").ToString()})%>"><img src='/images/language_<%#Eval("LanguageValue")%>.gif' align='absmiddle' border="0"  /></a> <a href='<%#LoginHost%>/files/learn-<%#Eval("LanguageValue")%>-all/1-1.htm'><%#GetText("C0105",new string[]{Eval("LanguageText").ToString()})%></a></li>
										</ItemTemplate>
									</asp:Repeater>
									</ul>
								<p align="right"><a href="<%=LoginHost%>/files/categories.htm"><%=GetText("C0028")%></a></p>
								</div>								
							</div>
						</div>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("C2001")%></h4>
								<div class="layer_contentA5">
									<ul class="tag_common_right">
									<%foreach(string tagl in TagList) {%>
										<li><a href="<%=LoginHost%>/files/tag/<%=tagl%>-1.htm"><%=HttpUtility.HtmlEncode(tagl)%></a></li>
									<%} %>
									</ul>
								<p align="right"><a href="<%=LoginHost%>/files/tag/"><%=GetText("AS111")%></a></p>
								</div>
							</div>
						</div>
					</div>
					<%} %>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script>
var Memberno = '<%=memberno %>';
var delTitle = "<%=GetText("C0050")%>";
var isDelSure = "<%=GetText("SF107")%>";
var C0069 = '<%=GetText("C0069")%>';
var gCancel = "<%=GetText("C0056")%>";
</script>